<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/commonJS.jsp" %>
<%@ include file="../common/commonLabel.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
  <head>
<title>下拉选设定</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<script language="javascript">
function doInsType(){
	doQueryMess("<%=path %>/aidedmanage.action?operate=inspage","","380","500");
}
function doDeltype(tid){
	if(confirm("您确定要删除吗?")){
		document.all.operate.value = "delinfo";
		document.all.delid.value = tid;
      	document.forms[0].submit();
	}
}
 //限制添加快捷内容的字数  
var maxLength =30; 
function MaxInput(fo,len) {
	if(len!=""){
		maxLength=len;
	}
	if (fo.value.length > maxLength) {
		alert("输入内容过多！");
		fo.value = fo.value.substring(0, maxLength);
	}
}

function doUpdType(tid){
	doQueryMess("<%=path %>/aidedmanage.action?operate=updpage&tid="+tid,"","380","500");
}
  </script>
  </head>
<body style="overflow: hidden">
<form name="form1" method="post" action="<%=path %>/aidedmanage.action">
<table width="96%" height="96%" border="0" cellpadding="0" cellspacing="0" class="MainBody">
	<tr>
    	<td colspan="2" class="MainBody_title"><hello:forValue type="title" /></td>
    </tr>
    <tr class="MainBody_body">
	  <td >
    <table width="99%" height="99%" border="0" cellpadding="0" cellspacing="0" >
	<tr >
 	 <td width="60%" valign="top">
		<input type="hidden" name="createuserid" value="${sessionScope.userid}">
		<input type="hidden" name="delid" value="">
		<input type="hidden" name="operate" value="">
	 	<table border="0" cellspacing="0" cellpadding="0" style="margin-top: 10px;margin-bottom: 10px;width:90%">
		<tr>
			<td align="right" style="width: 30%"><select name="qyxz" ></select></td>
			<td align="right" ><input type="button" value="添加" class="btn" onclick="doInsType()"/></td>
		</tr>
		</table>
		<div style="width:100%;height:550;overflow:auto;overflow-x:hidden;" align="center">
         <table border="0" cellpadding="0" cellspacing="0" class="MainBody_table">
         	<tr align="center" >
			  <th width="20%">下拉选名称</th>
			  <th width="20%">下拉选标识</th>
			  <th width="15%">创建人员</th>
			  <th width="15%">操作</th>
			</tr>
		<c:forEach items="${value}" varStatus="status" var="rows">
			<tr align="center" onmouseover="this.style.backgroundColor='#EEF7FD';" onmouseout="this.style.backgroundColor='';" style="cursor: hand" >  
			  <td onclick="doUpdType('${rows.tid}')" >${rows.typename}</td>
			  <td onclick="doUpdType('${rows.tid}')" >${rows.typechar}</td>
			  <td onclick="doUpdType('${rows.tid}')" >${rows.personname}</td>
			  <td ><input type="hidden" value="${rows.tid}" />
			  <span class='RoleSpan' onclick="doUpdType('${rows.tid}')" title='修改' style='color: green;' onmouseout="doMsOut('green')" onmouseover='doMsOver()'>修改</span>&nbsp;&nbsp;
			  <span class='RoleSpan' onclick="doDeltype('${rows.tid}')" title='删除' style='color: red;' onmouseout="doMsOut('red')" onmouseover='doMsOver()'>删除</span></td>
           </tr>
         </c:forEach>
		<c:if test="${empty value}">
			<tr>
				<td colspan="4" align="center">暂时没有您可以浏览的数据</td>
			</tr>
		</c:if>
          </table>
		<c:if test="${!empty value}">
          <hello:AllPage/>
		</c:if>
          </div>
     </td>
     <td valign="top" >&nbsp;
     
     </td>
   </tr>
</table>
	</td>
   </tr>
</table>
</form>
<script type="text/javascript">
new doSelectInfo(document.all.qyxz,'client_bank','韩飞').doElse();
</script>
  </body>
</html>
